/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-base
 * Create Time: 2016年1月27日 上午9:59:59
 */
package com.lenovo.lmrp.base.mq;

/**
 * @author zhangzhenga
 *
 */
public enum MQTopic {

	APPGWEVENT("appgateway"), ITSMGWEVENT("itsmgateway"),SENDMESSAGE("sendmessage");

	private String source;

	private MQTopic(String source) {
		this.source = source;
	}

	public String getSource() {
		return this.source;
	}

	public static MQTopic getMQtopic(String topic) {
		for (MQTopic mqtp : MQTopic.values())
			if (mqtp.name().equals(topic))
				return mqtp;
		return null;
	}
}
